﻿using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Newtonsoft.Json;
using Project.Model.EF6.Base;

namespace Project.Model.EF6.Entity
{
    [Table("T_SGM_XLW_DISTRIBUTOR")]
    public class Distributor : ModelBase
    {
        [Key]
        public int DISTRIBUTOR_ID { get; set; }

        [StringLength(50)]
        [Column(TypeName = "varchar2")]
        public string DISNAME { get; set; }

        [StringLength(50)]
        [Column(TypeName = "varchar2")]
        public string DISCODE { get; set; }

        [StringLength(20)]
        [Column(TypeName = "varchar2")]
        public string POVINCIAL { get; set; }

        [StringLength(20)]
        [Column(TypeName = "varchar2")]
        public string CITY { get; set; }

        [StringLength(20)]
        [Column(TypeName = "varchar2")]
        public string AREA { get; set; }

        //[JsonIgnore]
        //public virtual ICollection<RedRule> RedRule { get; set; }
        //[JsonIgnore]
        //public virtual ICollection<ProductSummary> ProductSummary { get; set; }
    }
}
